#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.action;

import com.opensymphony.xwork2.ActionSupport;

/**
 * <code>Set welcome message.</code>
 */
public class HelloWorld extends ActionSupport {

  @Override
  public String execute() throws Exception {
    setMessage(getText(MESSAGE));
    return SUCCESS;
  }

  /**
   * Provide default valuie for Message property.
   */
  public static final String MESSAGE = "HelloWorld.message";

  /**
   * Field for Message property.
   */
  private String message;

  /**
   * Return Message property.
   * 
   * @return Message property
   */
  public String getMessage() {
    return message;
  }

  /**
   * Set Message property.
   * 
   * @param message
   *          Text to display on HelloWorld page.
   */
  public void setMessage(String message) {
    this.message = message;
  }
}
